package com.cw.spider.parse.xinhua;

import cn.wanghaomiao.seimi.annotation.Crawler;
import cn.wanghaomiao.seimi.http.SeimiHttpType;
import cn.wanghaomiao.seimi.struct.Response;
import com.cw.spider.parse.AbstractCrawler;
import com.cw.spider.queue.Myqueue;
import com.cw.spider.service.NewService;
import org.seimicrawler.xpath.JXDocument;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 描述:
 *
 * @author withqianqian@163.com
 * @create 2020-09-01 9:30
 */
@Crawler(name = "xin_hua_child_basic", httpType = SeimiHttpType.OK_HTTP3, delay = 1,
        httpTimeOut = 3000, queue = Myqueue.class)
public class XinHuaChildCrawler extends AbstractCrawler {

    @Override
    public void start(Response response) {
        if (response != null) {
            JXDocument doc = response.document();
            System.out.println(doc);
        }

    }

}
